<?php
/* @var $this CountryController */
/* @var $model Country */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'country-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Поля с <span class="required">*</span> должны быть заполнены.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'continent'); ?>
		<?php 
			echo $form->dropDownList($model, 'continent',
			array(
				'europe' => 'Europe', 
				'asia' => 'Asia',
				'africa' => 'Africa',
				'australia' => 'Australia',
				'north-america, ' => 'North America',
				'south-america' => 'South Americ',
			)); 
		?>
		<?php echo $form->error($model,'continent'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->